home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / widget / nsIToolkit.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  2KB  |  99 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIToolkit.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIToolkit_h__
  6. #define __gen_nsIToolkit_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #include "prthread.h"
  18.  
  19. /* starting interface:    nsIToolkit */
  20. #define NS_ITOOLKIT_IID_STR "18032bd0-b265-11d1-aa2a-000000000000"
  21.  
  22. #define NS_ITOOLKIT_IID \
  23.   {0x18032bd0, 0xb265, 0x11d1, \
  24.     { 0xaa, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}
  25.  
  26. class NS_NO_VTABLE nsIToolkit : public nsISupports {
  27.  public: 
  28.  
  29.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITOOLKIT_IID)
  30.  
  31.   /**
  32.    * Initialize this toolkit with aThread. 
  33.    * @param aThread The thread passed in runs the message pump.
  34.    *  NULL can be passed in, in which case a new thread gets created
  35.    *  and a message pump will run in that thread
  36.    *
  37.    */
  38.   /* void Init (in PRThread aThread); */
  39.   NS_IMETHOD Init(PRThread * aThread) = 0;
  40.  
  41. };
  42.  
  43. /* Use this macro when declaring classes that implement this interface. */
  44. #define NS_DECL_NSITOOLKIT \
  45.   NS_IMETHOD Init(PRThread * aThread); 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSITOOLKIT(_to) \
  49.   NS_IMETHOD Init(PRThread * aThread) { return _to Init(aThread); } 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  52. #define NS_FORWARD_SAFE_NSITOOLKIT(_to) \
  53.   NS_IMETHOD Init(PRThread * aThread) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aThread); } 
  54.  
  55. #if 0
  56. /* Use the code below as a template for the implementation class for this interface. */
  57.  
  58. /* Header file */
  59. class nsToolkit : public nsIToolkit
  60. {
  61. public:
  62.   NS_DECL_ISUPPORTS
  63.   NS_DECL_NSITOOLKIT
  64.  
  65.   nsToolkit();
  66.  
  67. private:
  68.   ~nsToolkit();
  69.  
  70. protected:
  71.   /* additional members */
  72. };
  73.  
  74. /* Implementation file */
  75. NS_IMPL_ISUPPORTS1(nsToolkit, nsIToolkit)
  76.  
  77. nsToolkit::nsToolkit()
  78. {
  79.   /* member initializers and constructor code */
  80. }
  81.  
  82. nsToolkit::~nsToolkit()
  83. {
  84.   /* destructor code */
  85. }
  86.  
  87. /* void Init (in PRThread aThread); */
  88. NS_IMETHODIMP nsToolkit::Init(PRThread * aThread)
  89. {
  90.     return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92.  
  93. /* End of implementation class template. */
  94. #endif
  95.  
  96. extern NS_METHOD NS_GetCurrentToolkit(nsIToolkit* *aResult);
  97.  
  98. #endif /* __gen_nsIToolkit_h__ */
  99.